package com.hmdp.utils;

public interface Ilock {
    /**
     * 获取锁
     *
     * @Title: tryLock
     * @Description
     * @Author chs
     * @Date 2024/3/13 10:47
     * @Return boolean
     * @Throws
     **/
    boolean tryLock(long timeoutSec);

    /**
     * 释放锁
     *
     * @Title: tryLock
     * @Description
     * @Author chs
     * @Date 2024/3/13 10:47
     * @Return boolean
     * @Throws
     **/
    void unLock();
}
